package juc.imooccache.computable;

/**
 * @author fangbin
 * @desc
 * @date 2020/7/1 21:35
 */
public class ExpensiveFunction implements Computable<String,Integer> {
    @Override
    public Integer compute(String arg) throws Exception {
        System.out.println(Thread.currentThread().getName()+"正在计算");
        Thread.sleep(5000);
        return Integer.valueOf(arg);
    }
}
